import javax.swing.*;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class TeacherTest {
    public static void main(String[] args) {
        Map<String,String> map=new HashMap();
        map.put("东邪","JAVA");
        map.put("西毒","C语言");
        map.put("南帝","JSP");
        map.put("北丐","JSP");
        map.put("老顽童","Linux");
        map.put("郭靖","Spring boot");
        map.put("黄蓉","软件工程");

        map.put("Mary","JDBC");
        map.replace("郭靖","JAVA");

        System.out.println(map);
        // System.out.println(map.get());
//        map.keySet();
        System.out.println(map.keySet());


     /*   if(map.values().equals("JSP")){
            System.out.println(map.get("JSP "));
        }*/
        //System.out.println(map.get("JSP"));
        Set<String> set=map.keySet();
        for (String s:set) {
            System.out.println(s+"所教的课程是"+map.get(s));
        }

    }
}
